package com.springboot.shiro.mapper;

import com.springboot.shiro.pojo.Menu;
import com.springboot.shiro.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

public interface MenuMapper {
    int deleteByPrimaryKey(String id);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

    Set<Menu> findMenuByRoleId (@Param("roles") Set<Role> roles);
}